const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    info: {},
    list: {},
    yz_basic_info:{}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      yz_basic_info:wx.getStorageSync('yz_basic_info')
    })
    this.getData();
  },
  getData() {
    let baseUrl = app.getNetAddresss("plugin.newcomer-fission.frontend.controllers.center.index");
    app._getNetWork({
      url: baseUrl,
      success: (respone) => {
        let { data, msg, result } = respone.data;
        if (result !== 1) {
          wx.showToast({
            title: msg,
          });
          return false;
        } else {
          this.setData({
            info: data.info,
            list: data.list,
          });
        }
      },
    });
  },
  goRewardRecord() {
    wx.navigateTo({
      url: "/packageI/newcomer_fission/newcomer_reward/newcomer_reward",
    });
  },
});
